package com.contactbook.web.server.dto;

import com.contactbook.web.client.dto.MaritalStatusDTO;

import contactbook.model.MaritalStatus;

public class MaritalStatusDTOConverter {

	public static MaritalStatusDTO convert(MaritalStatus maritalStatus) {
		
		return MaritalStatusDTO.valueOf(maritalStatus.toString());
	}
	
	public static MaritalStatus convertDTO(MaritalStatusDTO maritalStatus) {
		
		return MaritalStatus.valueOf(maritalStatus.toString());
	}
}
